/*我的页面  中间劳务信息*/
import 'package:flutter/cupertino.dart';
import 'package:frametrim/utility/screen.dart';
import 'package:frametrim/utility/sq_color.dart';

class MineLaborMessView extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.all(10),
      padding: EdgeInsets.fromLTRB(10, 10, 10, 5),
      width: Screen.width - 20,
      decoration: BoxDecoration(
          borderRadius: BorderRadius.circular(5), color: SQColor.white),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: <Widget>[
          Text(
            '劳务信息',
            style: TextStyle(fontSize: 20, color: SQColor.black),
          ),
          SizedBox(height: 10,),
          Column(
            children: buildLabor(),
          ),
        ],
      ),
    );
  }

  List<Widget> buildLabor() {
    List<Widget> children = [];
    // for(var item in formList) {
    for (var i=0; i < 2; i++) {
      children.add(LaborView());
      children.add(SizedBox(height: 10,));
    }
    return children;
  }

  Widget LaborView(){
    return Container(
      width: Screen.width-40,
      padding: EdgeInsets.all(10),
      decoration: BoxDecoration(
        borderRadius: BorderRadius.circular(5),
        color: SQColor.color_F1F1F1
      ),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: <Widget>[
          Text('测试',style: TextStyle(fontSize: 20,color: SQColor.black),),
          SizedBox(height: 5,),
          Text('钢筋班组',style: TextStyle(fontSize: 14,color: SQColor.color_666666),),
          SizedBox(height: 5,),
          Text('作业人员',style: TextStyle(fontSize: 14,color: SQColor.color_666666),),
        ],
      ),
      
    );
  }
}
